<include file="Common:header"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/global.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/kfm.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/public.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/cutImage.css">
<style>
.cutimg{
	background: #eee;
}

#wrapper {
	position: absolute;
	top: 50%;
	margin-top: -166px;
	left: 50%;
	margin-left: -150px;
}

#component_box {
	position: relative;
	border: 1px green solid;
	width: 300px;
	height: 300px;
	margin: 0 auto;
	background: #fff;
}

#mainCutter {
	overflow: hidden;
	display: none;
	position: relative;
}

#cutBox {
	position: absolute;
	width: 150px;
	height: 150px;
	opacity: 0.5;
	background: gray;
}

#cropper {
	display: none;
	border: 1px solid red;
	width: 100%;
	height: auto;
}

#processBar {
	position: relative;
	width: 300px;
	height: 8px;
	background: #5c5c5c;
	border-radius: 8px;
}

#processPoint {
	width: 26px;
	height: 26px;
	position: absolute;
	left: 0;
	top: -9px;
}

#leftBar {
	position: absolute;
	left: 0;
	top: 0;
	background: #0e9754;
	height: 8px;
	width: 100px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
</style>
</head>
<body class="app_bg">
<div class="header">
	个人信息
	<a href="javascript:history.back();" class="back">
		<img src="__PUBLIC__/img/back.png"><span class="back_cs">返回</span>
	</a>
	<!-- <a href="<{:U('Home/Login/logout')}>" class="head_alter exit">
                退出登录
    </a> -->
</div>

<div class="person_info person_border">
	<div class="back_r back_comm person_f" style="height: 72px;line-height: 72px;background:none;">
			<span class="fl comm_pr">我的头像</span> 
			<img id="show_img" class="set_img" src="<{$member_info['thumb']}>" onerror="this.src='__PUBLIC__/img/face.png'" style="margin-right:10px;">
           
			<{:A('Upload')->upload_tool('filea','show_img','false','change_thumb(ret);','200')}>
			
            <input type="text" id="filea" class="dia_file">
		</div>
	
	
	<a href="<{:U('Home/User/change_name')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">昵称</span> 
			<span class="fr comm_pl"><{$member_info['username']}></span>
		</div>
	</a>
	
	<a href="<{:U('Home/User/change_wx')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">微信号</span> 
			<span class="fr comm_pl"><{$member_info['weixin']}></span>
		</div>
	</a>

	<a href="<{:U('Home/Login/spread',array('uid'=>$member_info['id']))}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr" >邀请伙伴</span> 
			<span class="fr comm_pl"><img src="__PUBLIC__/img/kf_ercode_img.png" class="kf_ercode_img"></span>
		</div>
	</a>
	<!-- <a href="<{:U('Home/Material/upload_material_list')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr" >上传素材</span> 
		</div>
	</a> -->

	<!-- <a href="<{:U('Home/User/withdraw')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">提现</span> 
		</div>
	</a>
 -->
	<!-- <a href="<{:U('Home/User/account')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">帐户明细</span> 
		</div>
	</a> -->
<?php /*
	<a href="<{:U('Home/Login/reset_password')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">重置密码</span> 
		</div>
	</a>
*/?>
	<a href="javascript:;">
		<div class="back_r  person_f">
			<span class="fl comm_pr">手机号</span> 
			<span class="fr comm_pl"><{$member_info['mobile']}></span>
		</div>
	</a>

</div>



<div class="person_info person_border" style="margin-top:20px;">

	<a href="javascript:;">
		<div class="back_r person_f">
			<span class="fl comm_pr">我的推荐人</span>
			<span class="my_peo fr comm_plno"><{$member_info['higher_info']['username']}></span>
		</div>
	</a>

	<!-- <a href="<{:U('Home/User/agentCenter')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr" >我的伙伴</span>
		</div>
	</a> -->

	<!-- <a href="<{:U('Home/User/openQrcode')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">默认推广</span>
		</div>
	</a> -->

	<if condition="$member_info['level'] eq 0">
	<a href="<{:U('Home/User/upgrade')}>">
		<div class="back_r back_comm person_f">
			<span class="fl comm_pr">付费成为正式会员</span>
		</div>
	</a>
	</if>
		
	<a href="javascript:;">
		<div class="back_r" style="height:65px;">
			<div class="fl">
				<p class="comm_pr">版本信息</p>
				<p class="free_type">

					<if condition="$user_level_info['level'] eq 0 and $judge_member eq true">
						您目前是试用期，距离试用期结束还有<{$day}>天
					<elseif condition="$user_level_info['level'] eq 0 and $judge_member eq false" />
						您现在是：普通会员
					<elseif condition="$user_level_info['level'] gt 0" />
						您现在是：<{$level_list[$member_info['level']]['level_name']}> (
							<if condition="$user_level_info['valid_time']">
							<{$user_level_info['valid_time']|date='Y-m-d',###}> 过期
							<else />
							终身有效
							</if>
						)
					</if>
				</p>
			</div>
		</div>
	</a>


<include file="Common:menu"/>
</body>
<script>

	//更新会员头像
	function change_thumb(path){
		var url = "<{:U('chage_user_thumb')}>";
		$.ajax({
			type:'post',
			url:url,
			data:{path:path},
			success:function(){
				return true;
			}
		})
	}
</script>
</html>